﻿<%@ Page Language="C#" MasterPageFile="~/INFTUR.Master" AutoEventWireup="true" CodeBehind="ManterAluguel.aspx.cs" Inherits="INFTUR.ManterAluguel" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 69%;
        }
        .style2
        {
            width: 145px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="principal" style="width:400px">
        <div id="cadastro" class="divDados" style="width:400px">
            <table class="style1">
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbId" runat="server" Text="Id"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbCliente" runat="server" Text="Cliente"></asp:Label>
                    </td>
                    <td>
                        <asp:ObjectDataSource ID="dsCliente" runat="server" 
                            DataObjectTypeName="Negocios.ClienteBO" DeleteMethod="Remove" 
                            InsertMethod="Insere" OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="ConsultaTodos" TypeName="Negocios.ClienteBOMetodos" 
                            UpdateMethod="Atualiza">
                            <DeleteParameters>
                                <asp:Parameter Name="cpf" Type="String" />
                            </DeleteParameters>
                        </asp:ObjectDataSource>
                        <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="dsCliente" 
                            DataTextField="Nome" DataValueField="Cpf">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbLocadora" runat="server" Text="Locadora"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="dsLocadora" 
                            DataTextField="Nome" DataValueField="Id">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="dsLocadora" runat="server" 
                            DataObjectTypeName="Negocios.LocadoraBO" DeleteMethod="remover" 
                            InsertMethod="inserir" OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="consultaTodos" TypeName="Negocios.LocadoraBOMetodos" 
                            UpdateMethod="atualizar">
                            <DeleteParameters>
                                <asp:Parameter Name="id" Type="Int32" />
                            </DeleteParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbDataInicial" runat="server" Text="Data Inicial"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbDataFinal" runat="server" Text="Data Final"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lbUsuario" runat="server" Text="Usuario"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="dsUsuario" 
                            DataTextField="Nome" DataValueField="Login" Enabled="False">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="dsUsuario" runat="server" 
                            DataObjectTypeName="Negocios.UsuarioBO" DeleteMethod="Remove" 
                            InsertMethod="inserir" OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="ConsultaTodos" TypeName="Negocios.UsuarioBOMetodos" 
                            UpdateMethod="Atualiza">
                            <DeleteParameters>
                                <asp:Parameter Name="cpf" Type="String" />
                            </DeleteParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
            </table>
         </div>
    </div>
</asp:Content>
